<?php


namespace App\common\models;

use App\common\models\BaseModel;
use Illuminate\Support\Facades\DB;

class Category extends BaseModel
{
    const table = 'goods';

    public static function getCategorys($parentId)
    {
        return DB::table(self::table)
            ->where('parent_id', $parentId)
            ->orderBy('display_order', 'desc');
    }

}
